<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
<script th:src="@{/static/js/jquery-1.9.1.min.js}"></script>
<!-- <script type="text/javascript"> -->
<script th:inline="javascript">//引用  
// window.location.href=[[@{/helloFtl}]];//取值  
// console.log("test:"+[[${name}]])
var  test=[[#{name} == ''?'':'zhangsan']];
console.log(test);
/*<![CDATA[*/  
 
var message = /*[[${name}]]*/;//取值  
console.log(message);
// console.log([[@{/helloFtl}]]);
/*]]>*/ 
jQuery(function(){
	/*<![CDATA[*/  
// 	window.location.href=[[@{/helloFtl}]];//取值  
	/*]]>*/ 
});

//  jQuery("#jq2").val("color");
</script>
</head>
<body>
	 <h1>
	 	Hello,thymeleaf
	 	<br />
	 	This is my first thymeleaf demo.
	 	
	 	
	 	<hr />
	 	
	 	welcome <span th:text="${name}"></span>
	 	<div id="jq2"   />
	 	
	 </h1>
</body>
<script type="text/javascript">
 var x=document.getElementById("jq2");
 x.innerHTML="i am jiaojing";

</script>
</html>